import pygame_menu
from pygame_menu.locals import ALIGN_CENTER


class PauseMenu:
    """暂停菜单"""
    def __init__(self, settings):
        custom_theme = pygame_menu.themes.THEME_BLUE.copy()
        custom_theme.title_font_size = 30
        self.pause_game_menu = pygame_menu.Menu('Paused Game',
                                                 settings.sizes['screen_width'] * 0.3,
                                                 settings.sizes['screen_height'] * 0.3,
                                                 theme = custom_theme)

        self.pause_game_menu.add.label('Press P to continue',
                                       align = ALIGN_CENTER,
                                       font_size = 20)